Cavern

 Cavern4D

 Cavernize

 Debug

 FilterInterfaces

 Filters

 Format

 Helpers

 QuickEQ

  EQCurves

  Equalization

  SignalGeneration

  Utilities

  FilterAnalyzer

  GraphUtils

  ConvertFromDecibels(float[])

  ConvertToDecibels(float[], float)

  ConvertToGraph(Complex[], double, double, int, int)

  ConvertToGraph(float[], double, double, int, int)

  Correlation(float[], float[])

  Correlation(float[], float[], int, int)

  ForEachLin(T[], double, double, FrequencyFunction)

  ForEachLog(T[], double, double, FrequencyFunction)

  FrequencyFunction(double, ref T)

  Normalize(float[])

  Scale(float[], int)

  Scale(float[], int, int, int)

  SmoothGraph(float[], float, float, float)

  SmoothGraph(float[], float, float, float, float)

  SmoothUniform(float[], int)

  PinkNoiseDetector

  IDisposable

  MeasurementImporter

  MeasurementImporterStatus

  NoisyChannel

  SpeakerSweeper

  VerboseImpulseResponse

  Window

  Windowing

 Remapping

 SpecialSources

 Spoofer

 Utilities

 Virtualizer

 Atmosphere

 AudioClip3D

 AudioListener3D

 AudioListener3DInspector

 AudioSource3D

 CavernizeRealtime

 Channel

 Clip

 Environments

 Jack

 Listener

 QualityModes

 Rolloffs

 SeatAdaptation

 Source

class GraphUtils

Functions for graph processing and iterations.
VisibilityPublic
Modifiersstatic

Public static functions

void ConvertFromDecibels(float[] curve)Convert a response curve back from decibel scale.
void ConvertToDecibels(float[] curve, float minimum = -100)Convert a response curve to decibel scale.
float[] ConvertToGraph(Complex[] response, double startFreq, double endFreq, int sampleRate, int resultSize)Convert a response to logarithmically scaled frequency range.
float[] ConvertToGraph(float[] response, double startFreq, double endFreq, int sampleRate, int resultSize)Convert a response to logarithmically scaled cut frequency range.
float Correlation(float[] x, float[] y) Get the correlation between two curves.
float Correlation(float[] x, float[] y, int start, int end)Get the correlation between a and index.
void ForEachLin<T>(T[] source, double startFreq, double endFreq, FrequencyFunction<T> action)Perform an action for each frequency value on a linearly scaled graph or spectrum band.
void ForEachLog<T>(T[] source, double startFreq, double endFreq, FrequencyFunction<T> action)Perform an action for each frequency value on a logarithmically scaled graph or spectrum band.
void Normalize(float[] graph)Moves a graph's average value to 0.
float[] Scale(float[] source, int newLength)Scales a graph to another length, while keeping the local peaks.
float[] Scale(float[] source, int newLength, int sourceStart, int sourceEnd)Scales a partial graph to another length, while keeping the local peaks.
float[] SmoothGraph(float[] samples, float startFreq, float endFreq, float octave = 1 / 3f)Apply smoothing (in octaves) on a graph drawn with ConvertToGraph(float[], double, double, int, int).
float[] SmoothGraph(float[] samples, float startFreq, float endFreq, float startOctave, float endOctave)Apply variable smoothing (in octaves) on a graph drawn with
ConvertToGraph(float[], double, double, int, int).
float[] SmoothUniform(float[] source, int windowSize)Smooth any kind of graph with a uniform window size.

Public variables

delegate void FrequencyFunction<T>(double frequency, ref T value)Action performed at a given frequency-value pair.